Skip to content

Add Tonstakers earn provider#1094

Open
0xh3rman wants to merge 6 commits intomainfrom
tonstakers
Open

Add Tonstakers earn provider#1094
0xh3rman wants to merge 6 commits intomainfrom
tonstakers

Conversation

@0xh3rman
Copy link
Copy Markdown
Collaborator

Adds a Tonstakers staking provider on TON: pool data RPC (get_pool_full_data → PoolFullData), stake/unstake call-data builders, and Yielder integration for deposit/withdraw flows. Wires sign_earn into TonChainSigner with Tonstakers opcode/fee enforcement.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements support for the Tonstakers yield provider on the TON blockchain. It introduces new modules in the gem_ton crate for handling TON-specific RPC results, building stake/unstake payloads, and signing "earn" transactions. The yielder crate is updated with a TonstakersProvider and integrated into the main Yielder logic. Feedback focuses on ensuring robust TON address comparisons by parsing them into a common type rather than comparing raw strings, and improving error handling during big integer parsing to prevent potential compilation errors.

Comment thread crates/yielder/src/tonstakers/provider.rs
Comment thread crates/gem_ton/src/tonstakers/payload.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant